Multithreaded JavaScript: Concurrency Beyond the Event Loop

Multithreaded JavaScript: Concurrency Beyond the Event Loop

作者: Hunter II Thomas English Bryan
出版社: O'Reilly
出版在: 2021-10-12
ISBN-13: 9781098104436
ISBN-10: 1098104439
裝訂格式: Quality Paper - also called trade paper
總頁數: 214 頁





內容描述


Until recently, JavaScript concurrency was achieved by splitting up tasks and scheduling them. But thanks to language advancements such as web workers in the browser, JavaScript is now a multithreaded language. What does that mean for you? In this practical book, authors Thomas Hunter II and Bryan English explain JavaScript threads as a programming concept and tool.Not every problem needs to be solved with threads, but having this tool in your toolbox will help you arrive at the most appropriate solution. This book explores various features that JavaScript runtimes have at their disposal for implementing multithreaded programs. By exploring practical real-world examples, you'll discover when to use threads and when not to.Learn what multithreaded programming is and how you can benefit from itUnderstand the differences between a web worker, a service worker, and a worker threadKnow when and when not to use threads in an applicationOrchestrate communication between threads by leveraging the Atomics objectBuild high-performance applications using the knowledge you gain from this bookBenchmark performance to learn if you'll benefit from multithreading


作者介紹


Thomas Hunter II has contributed to dozens of enterprise Node.js services and has worked for a company dedicated to securing Node.js. He has spoken at several conferences on Node.js and JavaScript, is JSNSD/JSNAD certified, and is an organizer of NodeSchool SF. Thomas has published four books including Distributed Systems with Node.js by O'Reilly.Bryan is an open source JavaScript and Rust programmer and enthusiast and has worked on large enterprise systems, instrumentation, and application security. Currently he's a Senior Open Source Software engineer at Datadog. He's used Node.js both professionally and in personal projects since not long after its inception. He is also a Node.js core collaborator and has contributed to Node.js in many ways through several of its various Working Groups.




相關書籍

Hadoop 應用開發基礎

作者 劉雯 王文兵

2021-10-12

Using SVG with CSS3 and HTML5: Vector Graphics for Web Design

作者 Amelia Bellamy-Royds Kurt Cagle Dudley Storey

2021-10-12

Spark核心技術與高級應用

作者 於俊

2021-10-12